/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

.conversation-title-bar {
  align-items: center;
  background-color: #fff;
  display: flex;
  height: @content-title-bar-height;
  justify-content: center;
  position: relative;
  width: 100%;
}

.conversation-title-bar-name {
  .ellipsis-nowrap();
  .flex-center();
  user-select: none;
  cursor: pointer;
  display: flex;
  flex-grow: 1;
  min-width: 280px;
  height: 100%;

  &--verified {
    margin: 4px 16px 0 0;
  }
}

.conversation-title-bar-guest-badge {
  .text-white();
  position: absolute;
  top: 56px;
  z-index: @z-index-badge;
  background-color: #95989a;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 6px;
  box-shadow: 0px 2px 16px 0px fade(#000, 8%);
}

.conversation-title-bar-library {
  align-items: center;
  display: flex;
  height: 100%;
}

.conversation-title-bar-icons {
  align-items: center;
  display: flex;
  height: 100%;
}

.conversation-title-bar-icon {
  flex: 0 0 auto;
  margin-left: 12px;
  margin-right: 12px;
}

.conversation-title-bar-name-label {
  .label-bold-xs();
}

@keyframes pulsate-animation {
  to {
    opacity: 0.32;
  }
}

.conversation-title-bar-icon-status {
  color: @w-red;
  cursor: default;
}

.conversation-title-bar-icon-status::before {
  animation: pulsate-animation;
  animation-direction: alternate;
  animation-duration: @animation-timing-slower * 2;
  animation-iteration-count: infinite;
  animation-timing-function: @ease-in-cubic;
}
